package com.consumer2.entity;

import java.io.Serializable;

/**
 * @version v1.0
 * @author: TianXiang
 * @description:
 * @date: 2020/11/22
 */
public class MovieAttr implements Serializable {

    /**
     * 日期目录名称
     */
    protected String dateDirName;

    /**
     * 视频目录名称
     */
    protected String dirName;

    protected String movieName;

    /**
     * 访问路径
     */
    private String url;

    public String getUrl() {
        return String.format("%s/%s/%s",this.dateDirName,this.dirName, this.getMovieName());
    }

    public String getDirName() {
        return dirName;
    }

    public MovieAttr setDirName(String dirName) {
        this.dirName = dirName;
        return this;
    }

    public String getMovieName() {
        return movieName;
    }

    public MovieAttr setMovieName(String movieName) {
        this.movieName = movieName;
        return this;
    }

    public String getDateDirName() {
        return dateDirName;
    }

    public MovieAttr setDateDirName(String dateDirName) {
        this.dateDirName = dateDirName;
        return this;
    }
}
